# -*- coding: utf-8 -*-
# @Time    : 2021/11/4 23:19
# @Author  : TangDagui
# @Email   : 3297364807@qq.com
# @File    : PythonThree.py
# @Software: PyCharm


def isNum(str):
    try:
        str = eval(str)
    except Exception:
        pass
    return True if (isinstance(str, float) or isinstance(str, int) or isinstance(str, complex)) else False
if __name__ == '__main__':
    x = input("请输入一个字符串：")
    print(isNum(x))